package org.codefinger.dao.util.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

public class BigIntegerRSGetter implements ResultSetGetter {

	public static BigIntegerRSGetter	INSTANCE	= new BigIntegerRSGetter();

	private BigIntegerRSGetter() {

	}

	@Override
	public Object getResult(ResultSet resultSet, int index) throws SQLException {
		return resultSet.getBigDecimal(index).toBigInteger();
	}

}
